/* eslint-disable */
// 该文件由 OneAPI 自动生成，请勿手动修改！
import { request } from '@umijs/max';
// 订单


/** 列表 */
export async function commentList(
  params?:any,
  options?: { [key: string]: any },
) {
  return request<API.Result_PageInfo_UserInfo__>('/api/comment/list', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 修改 */
export async function update(
  body?: API.UserInfoVO,
  options?: { [key: string]: any },
) {
  return request<API.Result_UserInfo_>('/api/order/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
/** add */
export async function addComment(
  body?: any,
  options?: { [key: string]: any },
) {
  return request<API.Result_UserInfo_>('/api/comment/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
/** 删除 */
export async function del(
  body?: any,
  options?: { [key: string]: any },
) {
  return request<API.Result_UserInfo_>('/api/comment/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
